package com.infore.statisticsAndAlarm;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;


@EnableEurekaClient
@EnableFeignClients
@SpringBootApplication
public class StatisticsAndAlarmApplication implements CommandLineRunner{

	/**
	 * 程序启动入口
	 */
	public static void main(String[] args) {
		SpringApplication.run(StatisticsAndAlarmApplication.class, args);
	}
	
	   
	/**
	 * springboot运行后此方法首先被调用<br/>
	 * 实现CommandLineRunner抽象类中的run方法
	 */
	@Override
	public void run(String... args) throws Exception {
		System.out.println("springboot启动完成！"+Thread.currentThread().getName());
//		((AbstractApplicationContext)SpringContextUtils.getApplicationContext()).close();  
//		Thread.currentThread().stop();
	}
}
